'use strict'

const express = require('express')

const path =require('path')
//create accountRouter
const accountRouter = express.Router()

const accountCtrl=require(path.join(__dirname,'../controller/accountCtrl.js'))


//处理具体的请求getLoginPage
accountRouter.get('/login',accountCtrl.getLoginPage)

accountRouter.get('/vcode',accountCtrl.getVcodeImage)

accountRouter.post('/login',accountCtrl.login)

module.exports = accountRouter
